package y2015.day_07.人类;

public class Student extends Person {
    String school;

    public String toString() {
        return
                super.toString() + "\n学校" + school;
    }

    public Student() {
        super();// 默认调用父类无参构造
        System.out.println("Student()");
    }

    public Student(String name, String gender, int age, String school) {
        super(name, gender, age);
        this.school = school;
        System.out.println("Student(1,2,3");
    }
}

